package com.game;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.Display;
import android.view.WindowManager;

public class Box extends Pongitem {

	private static int countRectangle = 1;
	private int id;
	private int X;
	private int Y;
	public int width;
	public int height;
	private Bitmap cool;
	
	public Box(Context context, int X, int Y, int newboxW, int newboxH){
		BitmapFactory.Options fact = new BitmapFactory.Options();
		fact.inJustDecodeBounds = true;
		id = countRectangle;
		countRectangle++;	
		WindowManager win = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
		Display display = win.getDefaultDisplay();
		width = display.getWidth();
		height = display.getHeight();
		this.X = width / 2;
		this.Y = height / 2;
	}
	
	
	public Bitmap getBitmapcool(){
		return cool;
	}
	
	public int getid(){
		return id;
	}
	
	public int getX(){
		return X;
	}
	
	public int getY(){
		return Y;
	}
	
	public void setX(int newX){
		this.X = newX;
	}
	
	public void setY(int newY){
		this.Y = newY;
	}


	public void onMove(int newX, int newY, Box box) {
		
	}
}
